package com.cvte.shop.service;

import com.cvte.csb.core.interfaces.vo.RestResponse;
import com.cvte.shop.entity.UniversalViewConfig;
import com.cvte.csb.jdbc.mybatis.service.IBaseService;
import com.cvte.shop.entity.dto.ConditionDTO;
import com.cvte.shop.entity.dto.FieldDTO;
import com.cvte.shop.entity.dto.ViewDTO;

import java.util.List;

/**
 * 服务类
 *
 * @author inv
 * @since 2020-08-04
 */
public interface UniversalViewConfigService extends IBaseService<UniversalViewConfig> {

    /**
     * 添加视图配置
     * @return
     */
    RestResponse addViewConfig(ViewDTO viewDTO);

    /**
     * 创建一个视图
     * @param tableId       表的id
     * @param viewId        视图的id
     * @return
     */
    UniversalViewConfig createView(String tableId,String viewId);


}
